<?php

require 'conn.php';

require 'config.php';

require 'inc/function.php';
$ye='news';
if ($id=='') exit('Error: 参数错误！');

$query=mysql_query('select * from '.$language.'_news where n_id='.$id,$conn);

if (mysql_num_rows($query)==0) Msg('','news.php');

$row=mysql_fetch_array($query);

$n_class=$row['n_class'];

$n_title=$row['n_title'];

$n_content=$row['n_content'];

$n_date=$row['n_date'];


$site_keyword=$n_title.' - '.$site_keyword;

$site_description=$n_title.' - '.$site_description;

if ($row['k_name']!='') $site_name=$row['k_name'];

if ($row['k_keyword']!='') $site_keyword=$row['k_keyword'];

if ($row['k_description']!='') $site_description=$row['k_description'];

$cid=$n_class;

$class_name=RsField('select n_name from '.$language.'_news_class where n_id='.$n_class);


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><?php echo  $n_title.'-'.$class_name.' - '.$site_name?></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=1200,initial-scale=0.3,maximum-scale=1.0,user-scalable=yes" />
<meta name="keywords" content="<?php echo $site_keyword?>" />

<meta name="description" content="<?php echo $site_description?>" />
  <link rel="stylesheet" rev="stylesheet" href="css/global.css" />

<link rel="stylesheet" rev="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jq_min.js"></script>

</head>
<body>
<?php require 'header.php'?>

<!-- haeder S-->
<div id="ban" style="background:url(<?php echo RsField('select b_image from '.$language.'_banner where b_id=3')?>) center no-repeat;"></div>
 
  <div id="center">
        	<div class="main clear_both">
             	<div class="left fl">
	    <div class="about">新闻中心   </div>
    <div class="list">
        <ul>
        	          
                 <?php
                  $str='';

		$query=mysql_query('select n_id,n_name from '.$language.'_news_class order by n_order asc');

		if (mysql_num_rows($query)>0){

		while($row=mysql_fetch_array($query)){
			$str.=' <li>';
			if($row['n_id']==$cid){
               $str.=' <div class="senior on">';
			}
			else
			{
				               $str.=' <div class="senior">';

				}
			   $str.='<a href="news.php?id='.$row['n_id'].'">'.$row['n_name'].'</a> </div></li> ';
		}

		}
 
				 echo $str;
				  ?>
              
                    </ul>
    </div>
    
    
</div> 
            	<div class="right fr clear_both" style="padding-bottom:50px;">
                	<div class="mbx fl">
                    
                       <div class="mbtitle"><?php echo $class_name?></div>
                <div class="mbtitle2">当前位置：<a href="index.php">首页</a>&gt;<a href="news.php">新闻中心</a>&gt;<?php echo $class_name?></div>
                
      </div> 
                    <div class="clear"></div>
                    <div class="neiwrap">
                    	  <div class="rightboxtit"><?php echo $n_title?></div>
            <div class="rightboxinfo"><?php echo $n_date?></div>
            
                            <div class="description">
                                <div>
	 		 <?php echo $n_content;?>
     							</div>                      
                                
                            </div>
                     
                </div>   
            </div>
        </div>
        
        
 



<?php require 'footer.php'?>


</body>
</html>